package com.qiuzhiyi.adapter;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.li.widget.TagImageView;
import com.qiuzhiyi.R;

/**
 * Author: Li
 * Date: 2017/11/23 0023
 * Description:
 */

public class ImageAdapter extends BaseQuickAdapter<String,BaseViewHolder> {
    public ImageAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        TagImageView imageView=helper.getView(R.id.img);
        Glide.with(mContext).load(item).into(imageView);
    }
}
